'use strict';

const Controller = require('egg').Controller;
const path = require("path")
const fs = require('mz/fs');

class HomeController extends Controller {
  * index() {
    const tpl = path.join(this.config.static.dir, "index.html")
    console.log(tpl)
    this.ctx.body = yield fs.readFile(tpl, 'utf-8');
  }
  // index() {
  //   this.ctx.body = "hi;egg";
  // }
}

module.exports = HomeController;
